import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);
const routerPush = VueRouter.prototype.push;
VueRouter.prototype.push = function push(location) {
  return routerPush.call(this, location).catch((error) => error);
};
/**
 * @webpackChunkName:"about"
 *
 */
const routes = [
  {
    path: "/",
    redirect: "/login",
   
  },
  {
    path: "/counter",
    name: "counter",
    component: () => import("../pages/counter/counter.vue"),
  }
];

const router = new VueRouter({
  routes,
});

export default router;
